export default {
    namespaced: true,
    state: {
        //项目各接口
        api: {},
        //用户信息
        userInfo:null,
        //路由
        routes:[],
    },
    mutations: {
        setApi(state, api) {
            state.api = api;
        },
        setUserInfo(state, userInfo) {
            state.userInfo = userInfo;
        },
        setRoutes(state, routes) {
            state.routes = routes;
        },
    },
}
